package com.achao.frontdeskmanage;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients(basePackages = "com.achao.frontdeskmanage.**.ifeign")
@MapperScan("com.achao.frontdeskmanage.**.dao")
//这个注解得目得是为了找到redis得配置类，不知为何@Bean无法被注入容器
@ComponentScan(basePackages = {"com.achao.basecommon.utils","com.achao.basecommon.config","com.achao.frontdeskmanage","com.achao.basecommon.aop","com.achao.basecommon.service"})
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class FrontDeskManageApplication {

    public static void main(String[] args) {
        SpringApplication.run(FrontDeskManageApplication.class, args);
    }

}
